<?php
class Account_Form_Login extends Epic_Form_Element 
{
    public function __construct() 
    {
    	$this->setId('login-form')
    		 ->setMethod('post')
    		 ->setAction(Epic::getUrl('account/user/login'));
    	
    	$username = new Epic_Form_Element_Text();
    	$username->setName('username')
    		  ->setClass('text')
    		  ->setLabel('Username', 'Username');
    	//$username->addValidator(new Epic_Validate_Element_Email());
    	
    	$password = new Epic_Form_Element_Password();
    	$password->setName('password')
    			 ->setClass('text')
    			 ->setLabel('Password', 'password');
    	
    	$submit = new Epic_Form_Element_Submit();
    	$submit->setName('login')
    	 	   ->setClass('submit')
    		   ->setValue('Sign in');
    	
    	$this->addElements(array($username, $password, $submit));
    }
}